STEP 7: Let's add another if statement to check whether the user answered "moon".

  • Go to LOGIC and in , drag out another if and drop it at the bottom of your program.
  • Change the test value to "moon".
  • In GRAPHICS, go to and drag out a Say command and drop it INSIDE the new if statement.
  • Change the string in .say() to "I can't believe I'm on the moon!"

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)